<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" />
<title>코오롱</title>
<link rel="stylesheet" type="text/css" href="${requestScope.contextPath}/css/import.css" />
<script type="text/javascript" src="${requestScope.contextPath}/js/jquery-ui-1.8.14.custom/js/jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="${requestScope.contextPath}/js/jquery-ui-1.8.14.custom/js/jquery-ui-1.8.14.custom.min.js"></script>
<script type="text/javascript" src="${requestScope.contextPath}/js/common.js"></script>
<c:set var="userAgent" value="${header['User-Agent']}" />
<fmt:setBundle basename="com.kolon.config.properties.config" var="config" />
<c:if test="${fn:indexOf(userAgent, 'Android') != -1}"><c:set var="platForm" value="Android" /></c:if>
<c:if test="${fn:indexOf(userAgent, 'iPhone') != -1}"><c:set var="platForm" value="iPhone" /></c:if>
<% String schTp = com.kolon.framework.util.ComUtil.nullChk(request.getParameter("schTp")); %>
<script type="text/javascript">
	function appBack() {
		<%if ("".equals(schTp)) {%>
		document.location.href='${requestScope.contextPath}/business/mKolonInt/mKolonIntView.do?ArticleCD=${viewMap.ArticleCD}';
		<%}else{%>
		history.back(-1);
		<%}%>
	}
</script>

<script type="text/javascript" src="${requestScope.contextPath}/js/cubiq-iscroll/iscroll.js"></script>
<script type="text/javascript">
	var myScroll;
	function loaded() {
		myScroll = new iScroll('wrapper', { 
			checkDOMChanges: true,
			zoom: false
		});
	}
	document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false);
	window.addEventListener('DOMContentLoaded', setTimeout(function () { loaded(); }, 200), false);
	function conDelete(url) {
		var del;
		del=confirm("삭제하시겠습니까?");
		if (del==true) {
			location.href=url;
		}
	}
</script>
<style type="text/css" media="all">
/*원본 : #wrapper { position:absolute; z-index:1; top:48px; bottom:0px; left:0; width:320px; overflow:auto; }*/
#wrapper { position:absolute; z-index:1; top:48px; bottom:0px; left:0; width:100%; overflow:auto; }
#scroller { position:absolute; -webkit-tap-highlight-color:rgba(0,0,0,0); width:100%; padding:0; background:#fff; }
</style>
</head>
<body>
	<div id="wrap">
		<div class="header">
			<h1>코오롱지식인</h1>
		</div><!-- // header -->
			  <div id="wrapper"  class="news knowledge">
			  <div id="scroller">
				<ul>
					<li><span class="bold">${viewMap.Title}</span><span class="date1"> ${viewMap.UserName} | ${viewMap.CreateDate} | 조회: ${viewMap.ViewCnt}</span></li>
				</ul>
				<div class="content">
				<c:forEach items="${mapList3}" var="mapInfo3" varStatus="status">
					<p class="comment">
						${mapInfo3.Contents}<br /> ${mapInfo3.UserName} ${mapInfo3.CreateDate}
						<c:if test="${mapInfo3.UserID eq sessionScope.SESSION_USER_INFO.userId}">
							<span class="icon"> 
								<a href="${requestScope.contextPath}/business/mKolonInt/mKolonIntComentModify.do?CommentCD=${mapInfo3.CommentCD}&ArticleCD=${viewMap.ArticleCD}&AContents=${mapInfo3.ContentsUtf}"><img src="${requestScope.contextPath}/images/btn/com_modify.gif" alt="수정" /></a>&nbsp;
								<a href="javascript:conDelete('${requestScope.contextPath}/business/mKolonInt/mKolonIntComentDel.do?CommentCD=${mapInfo3.CommentCD}&ArticleCD=${viewMap.ArticleCD}');"><img src="${requestScope.contextPath}/images/btn/com_del.gif" alt="삭제" /></a>
							</span>
						</c:if>
					</p>
				</c:forEach>
				<div class="btn_area">
					<p class="left_area"><a href="${requestScope.contextPath}/business/mKolonInt/mKolonIntView.do?ArticleCD=${viewMap.ArticleCD}"><img src="${requestScope.contextPath}/images/btn/btn_view3.gif" alt="본문보기" /></a></p>
					<div class="right_area">
						<p><a href="${requestScope.contextPath}/business/mKolonInt/mKolonIntComentWrite.do?ArticleCD=${viewMap.ArticleCD}"><img src="${requestScope.contextPath}/images/btn/btn_write.gif" alt="댓글쓰기" /></a></p>
						<p><a href="${requestScope.contextPath}/business/mKolonInt/mKolonIntReplyForm.do?ArticleCD=${viewMap.ArticleCD}"><img src="${requestScope.contextPath}/images/btn/btn_write2.gif" alt="답글쓰기" /></a></p>
					</div>
				</div>
				<p class="btn_more btn_view"><a href="${requestScope.contextPath}/business/mKolonInt/mKolonIntList.do?strMode=18&SearchUserName=&SearchTitle=&SortAscDesc=desc&page=${page}&endY=${param.endY}"><img src="${requestScope.contextPath}/images/btn/btn_view2.gif" alt="목록보기"/></a></p>
				</div>
		   </div>	
		</div><!-- // content -->
	</div><!-- // wrap -->
</body>
</html>